package com.platform.request;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class BaseRequest {
	
	public String MessageType;
	
	public String toJson(){
		Gson gson =new Gson();
		return gson.toJson(this);
	}
	
	public Gson getGson(){
		GsonBuilder builder =(new GsonBuilder()).disableHtmlEscaping();
		return builder.create();
	}
	
	public static class MsgType{
		public static final String HeartBeatRequest="HeartBeatRequest";
		public static final String FrameTransferRequest="FrameTransferRequest";
		public static final String GroupChatAskForRequest="GroupChatAskForRequest";
		public static final String GroupChatReleaseRequest="GroupChatReleaseRequest";
		public static final String GroupChatRequest="GroupChatRequest";
	}
}
